class Course extends Activity{
    int seats
    int startHour
    int endHour
    Date date
    String level


    static constraints = {
        level(inList:["Basic","Advanced","Administrator"],nullable:true)
        date(nullable:true)
        startHour(nullable:true)
        endHour(nullable:true)
        seats(nullable:true)
    }

    public Float calcTotalCost(){
        return 100.00;
    }
    public Float calcTotalIncome(){
        return 0.0
    }

    /* Add employee to project */
     public void addEmployee(Employee e, int addMode){
        Date d = new Date();
        if(e != null){
            Whoa w = new Whoa(member:e, year:d.getYear(), hours:0, worksInCourse:this, mode:addMode);
            this.addToAmountOfHour(w);
        }
        else{
            System.out.println("Något gick fel:" + e)
        }
    }

}
